BlueCielo Meridian Enterprise 2012 Developer's Guide | BlueCielo ECM Solutions

Using the LoadProperties method

An easy-to-use method for reading and writing property values is using the LoadProperties and SaveProperties methods of the AMDocument object. But it has two important drawbacks. First, it requires many calls to the server and may cause performance problems in larger environments. Second, this method does not work for properties that are part of the Field-Path Relation definition.

We recommend using LoadPropertyValues and SavePropertyValues instead. But for completeness, the following code sample demonstrates the use of the LoadProperties and SaveProperties methods.

    Dim Properties As AMPropertyCollection
    Dim Author As Variant
    
    Set Properties = Document.LoadProperties("Custom")
    
    ' Read value
    Author = Properties.Get("Author").Value
    
    ' Write value
    Properties.Get("Author").Value = "John"
    Document.SaveProperties Properties

Related information

About accessing object properties

Accessing properties using the server object

Accessing properties using the IASDocument interface

Accessing properties using the designer object

Using a tableview


Copyright © 2000-2012 BlueCielo ECM Solutions

www.bluecieloecm.com